package com.security.mapper;

import com.security.pojo.Role;
import com.security.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
public interface UserMapper {
    User findUserByName(String username); //根据姓名查找用户User
    List<Role> findRolesByUserId(int id); //根据用户id查找角色Role集合，角色中又包含权限
}
